/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.admin.mapper;

import org.apache.ibatis.annotations.Param;
import org.springblade.modules.admin.entity.MaintainSignCalendar;
import org.springblade.modules.admin.entity.UserWorkforceSign;
import org.springblade.modules.admin.vo.UserReportConfigListVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.modules.admin.vo.sign.SignWorkforceAddVo;

import java.util.List;

/**
 * 用户考勤排班计划表 Mapper 接口
 *
 * @author ysq
 * @since 2024-10-09
 */
public interface UserWorkforceSignMapper extends BaseMapper<UserWorkforceSign> {


	/**
	 * 查询值班组
	 * @param date 日期
	 * @param endDate 结束日期下载时有值
	 * @param holiday 类型 0: 工作日，1: 休息日
	 * @return 数据集
	 */
    List<UserWorkforceSign> groupList(@Param("date") Integer date, @Param("holiday")  Integer holiday,@Param("endDate")  Integer endDate,@Param("signSetingId") Long signSetingId );


	/**
	 * 获取排班日历
	 * @param signWorkforceAddVo 查询条件
	 * @return 数据集
	 */
	List<MaintainSignCalendar> signDateList(@Param("signWorkforceAddVo") SignWorkforceAddVo signWorkforceAddVo);


	/**
	 * 获取小组值班明细
	 * @param page 分页
	 * @param signWorkforceAddVo
	 * @return 数据集
	 */
    List<UserReportConfigListVO> signUserList(IPage<UserReportConfigListVO> page,@Param("signWorkforceAddVo") SignWorkforceAddVo signWorkforceAddVo);

	List<UserWorkforceSign> list(@Param("beginDate") Integer beginDate, @Param("endDate")  Integer endDate,@Param("signSetingId") Long signSetingId);

	List<UserWorkforceSign> getSignUserList(@Param("signWorkforceAddVo") SignWorkforceAddVo signWorkforceAddVo);
}
